#ifndef UDPEVENT_H
#define UDPEVENT_H

#include <QObject>
#include <QDebug>

#include <QUdpSocket>


class UdpEvent: public QObject
{
Q_OBJECT

public:
    UdpEvent();
    void Event();
    void Read();
private:
    QUdpSocket mSocket;

    QHostAddress m_clientAddress;
    quint16 m_clientPort;
    bool m_clientHasAddr = false;
};



#endif // UDPEVENT_H
